<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema id="ListTypes"
                  targetNamespace="http://kis.x-road.eu/"
                  xmlns:mstns="http://kis.x-road.eu/"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema">


	<xsd:simpleType name="listOfFloat">
		<xsd:list>
			<xsd:simpleType>
				<xsd:restriction base="xsd:float">
					<xsd:minInclusive value="10.0" />
					<xsd:maxInclusive value="20.0" />
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:list>
	</xsd:simpleType>

	<xsd:element name="Currency">
		<xsd:simpleType>
			<xsd:restriction base="mstns:listOfFloat">
				<xsd:length value="3" />
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:element>



	<xsd:simpleType name="SizeType">
		<xsd:restriction base="xsd:token">
			<xsd:enumeration value="small"/>
			<xsd:enumeration value="medium"/>
			<xsd:enumeration value="large"/>
		</xsd:restriction>

	</xsd:simpleType>

	<!--Anonymous simple list type-->
	<xsd:simpleType name="AnonymousSimpleListType">
		<xsd:restriction >
			<xsd:simpleType >
				<xsd:list  itemType="mstns:SizeType"/>
			</xsd:simpleType>
			<xsd:enumeration value="small medium large"/>
			<xsd:enumeration value="small medium"/>

		</xsd:restriction>
	</xsd:simpleType>
	<!--simple list type -->
	<xsd:simpleType name="SimpleListType">
		<xsd:list itemType="mstns:SizeType"   >
     
		</xsd:list>
    
	</xsd:simpleType>
	<!--derived simple list type -->
	<xsd:simpleType name="DerivedSimpleListType">
		<xsd:restriction base="mstns:SimpleListType" >
			<xsd:enumeration value="large small"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="AnonymousAtomicListType">
		<xsd:restriction >
			<xsd:simpleType >
				<xsd:list>     
					<xsd:simpleType>
						<xsd:restriction base="mstns:SizeType" >
							<xsd:annotation>
								<xsd:documentation>
									asdfad
								</xsd:documentation>
							</xsd:annotation>
              <xsd:enumeration value="small"/>
              <xsd:enumeration value="medium"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:list>
			</xsd:simpleType>
      
    
			<xsd:enumeration value="small"/>
		</xsd:restriction>
	</xsd:simpleType>
  <xsd:simpleType name="AnonymousUnionListType">
    <xsd:restriction >
      <xsd:simpleType >
        <xsd:list>
         <xsd:simpleType>
           <xsd:restriction base="mstns:SimpleUnion2"></xsd:restriction>
          </xsd:simpleType>
        </xsd:list>
      </xsd:simpleType>
      <xsd:enumeration value="1 2 35"/>
      <xsd:enumeration value="small medium large"/>
      <xsd:enumeration value="small medium"/>
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="SimpleUnion2">
    <xsd:union memberTypes="xsd:int xsd:token">
      <xsd:simpleType>
        <xsd:restriction base="xsd:normalizedString"></xsd:restriction>
      </xsd:simpleType>
    </xsd:union>
  </xsd:simpleType>
</xsd:schema>




